const customConsole = require("./index");

/**
 * 注意：结束时需要使用换行。
 */

// 追加log
console.log("追加log demo");
customConsole.log("1");
customConsole.log("+");
customConsole.log("2");
customConsole.log("=");
customConsole.logBr("3");

// 覆盖log
console.log("覆盖log demo");
for (let i = 0; i <= 10; i++) {
  setTimeout(() => {
    if (i !== 10) {
      customConsole.cover(`${i * 10}%`);
    } else {
      customConsole.coverBr(`${i * 10}%`);
    }
  }, i * 100);
}
